// 表格样式
.tablePageWarp {
  padding: 24px 24px 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tablePageWarpOther {
  padding: 10px 24px 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
// 表格流式布局
.tableSearchListFlexPage {
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  .tableSearchMain {
    flex: none;
  }
  .tableListMain {
    flex: 1 0 0;
    // overflow: hidden;
  }
}
// 列表上方搜索下拉框样式
.commonSelectWidth {
  margin-bottom: 20px;

  .btnWarp {
    margin-top: 4px;
  }

  &.table-page-search-wrapper {
    .ant-form-item {
      margin-bottom: 6px;
      width: 100%;
    }
  }
}
// 表格标题
.tableTitle {
  width: 100%;
  background: #fafafa;
  height: 40px;
  border-bottom: 1px solid #e8e8e8;
  border-top: 1px solid #e8e8e8;

  .checkWarp {
    width: 28px;
    padding: 0 22px;
    display: inline-block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }

  .chosed {
    padding: 0 16px;
    display: inline-block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }

  .operationWarp {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
  }
}

// 表格底部样式
.tableFooter {
  padding: 20px;
  color: #5e5e5e;
  font-size: 1.4rem;

  &::before {
    display: inline-block;
    content: '';
    height: 100%;
    vertical-align: middle;
  }

  div {
    float: right;
    padding: 4px 14px;
    background-color: rgba(221, 221, 221, 0.498039215686275);
    border-radius: 14px;
  }
}

.commonTableSty {
  flex: 1 0 0;
  col {
    max-width: 120px;
  }
  .ant-table-wrapper .ant-table-thead tr > th {
    max-width: 200px;
    white-space: nowrap;
    padding: 9px 16px;
    border-bottom: 1px solid #e8e8e8;
    border-top: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
  }
  .ant-table-wrapper .ant-table-thead tr > th:first-child {
    &.ant-table-selection-column {
      border-right: none;
    }
  }
  .ant-table-wrapper .ant-table-tbody tr > td {
    max-width: 200px;
    // white-space: nowrap;
    padding: 8px 16px;
    border-bottom: 1px solid #f2f2f2;
    word-break: break-all;
    .tableOperateSty {
      a {
        padding-right: 8px;
        word-break: keep-all;
        white-space: nowrap;
        &:last-child{
          padding-right: 0;
        }
      }
      span {
        padding-right: 8px;
      }
      .ant-btn {
        margin-right: 8px;
        &:last-child{
          margin-right: 0px;
        }
      }
    }
    &.ant-table-row-cell-break-word {
      word-break: break-all; //不已单词换行（防止破折号提前换行）
    }
  }
  .ant-table-wrapper .ant-table-content {
    overflow-y: auto;
  }
  .ant-table-scroll &.smallWith {
    .ant-table-wrapper tr > td {
      max-width: 120px;
    }

    .ant-table-wrapper tr > th {
      max-width: 120px;
    }
  }

  .ant-table-title {
    padding: 0;
    border-bottom: 1 px solid rgb(232, 232, 232);
  }
  .ant-table-footer {
    padding: 9px 0px;
  }
  // element ui table
  .el-table {
    &.el-table--border {
      border-left: none;
    }
    .el-table__body-wrapper {
      .el-table__body {
        tr {
          td {
            border-right: none;
            border-bottom: 1px solid #f2f2f2;
          }
        }
      }
    }
    &.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
      background: #d8e4e6;
    }
    th.el-table__cell {
      background-color: #fafafa;
      > .cell {
        font-weight: 500;
        color: rgba(0, 0, 0, 0.85);
        font-size: 1.4rem;
      }
    }
    td.el-table__cell {
      > .cell {
        color: #0f0f0f;
        font-size: 1.4rem;
      }
    }
    .el-table__footer-wrapper td.el-table__cell {
      background-color: #fafafa;
    }
  }
}
.commonTableStyWithNoFlex {
  .ant-table-wrapper .ant-table-thead tr > th {
    max-width: 200px;
    white-space: nowrap;
    padding: 9px 16px;
    border-bottom: 1px solid #e8e8e8;
    border-top: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
  }
  .ant-table-wrapper .ant-table-thead tr > th:first-child {
    &.ant-table-selection-column {
      border-right: none;
    }
  }
  .ant-table-wrapper .ant-table-tbody tr > td {
    max-width: 200px;
    // white-space: nowrap;
    padding: 8px 16px;
    border-bottom: 1px solid #f2f2f2;
    .tableOperateSty {
      a:nth-child(2) {
        margin-left: 8px;
      }
      span:nth-child(2) {
        margin-left: 8px;
      }
    }
    &.ant-table-row-cell-break-word {
      word-break: break-all; //不已单词换行（防止破折号提前换行）
    }
  }
  .ant-table-wrapper .ant-table-content {
    overflow-y: auto;
  }
  .ant-table-scroll &.smallWith {
    .ant-table-wrapper tr > td {
      max-width: 120px;
    }

    .ant-table-wrapper tr > th {
      max-width: 120px;
    }
  }

  .ant-table-title {
    padding: 0;
    border-bottom: 1 px solid rgb(232, 232, 232);
  }
  .ant-table-footer {
    padding: 9px 0px;
  }
  // element ui table
  .el-table {
    &.el-table--border {
      border-left: none;
    }
    .el-table__body-wrapper {
      .el-table__body {
        tr {
          td {
            border-right: none;
            border-bottom: 1px solid #f2f2f2;
          }
        }
      }
    }
    &.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
      background: #d8e4e6;
    }
    th.el-table__cell {
      background-color: #fafafa;
      > .cell {
        font-weight: 500;
        color: rgba(0, 0, 0, 0.85);
        font-size: 1.4rem;
      }
    }
    td.el-table__cell {
      > .cell {
        color: #0f0f0f;
        font-size: 1.4rem;
      }
    }
    .el-table__footer-wrapper td.el-table__cell {
      background-color: #fafafa;
    }
  }
}

// 拥有最小高度的ant表格样式
.withMinHeightTbodyBox {
  .ant-table-wrapper {
    .ant-table-content {
      .ant-table-body {
        min-height: 260px !important;
      }
    }
    .ant-table-empty .ant-table-content {
      .ant-table-body {
        min-height: 0px !important;
      }
    }
  }
}

// 带有竖排表头带灰色背景色的表格样式，如任务信息展示
.withVeriticalColumnsTableItem {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  .columnsStyle {
    display: flex;
    height: 40px;
    line-height: 40px;
    .label {
      width: 100px;
      padding: 0 12px;
      background-color: rgba(242, 242, 242, 1);
      font-weight: bolder;
      color: #5e5e5e;
      text-align: right;
    }
    .contentText {
      flex: 1 0 0;
      text-align: right;
      color: #5e5e5e;
      border-bottom: 1px solid #f2f2f2;
      padding-right: 6px;
    }
  }
}

.table-page-search-wrapper {
  .ant-select-selection--multiple {
    max-height: 33px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .ant-btn, .disabledAuthButtonWrap {
    vertical-align: top;
  }
}
/**
* 解决浏览器版本在96.xx下表格无数据时本有的水平滚动条不出现的问题
*/
.ant-table-empty {
  tbody.ant-table-tbody {
    height: 1px;
    visibility: hidden;
  }
}